using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PACKETPARSERMAX20.CORE;

namespace PACKETPARSERMAX20.CORE.DEFINITIONS
{
    public class MSG_CORPSE_QUERY_DEF : DefinitionBase
    {

        public override bool Process()
        {
            ResetPosition();
            if (AvailableBytes > 0)
            {
                byte found = ReadByte();
                if (found > 0)
                {
                    UInt32 CorpsMapId = ReadUInt32();
                    float X = ReadSingle();
                    float Y = ReadSingle();
                    float Z = ReadSingle();
                    UInt32 PlayerMapId = ReadUInt32();

                    if (ClientBuild >= 9947)
                    {
                        UInt32 unk = ReadUInt32();
                    }
                }
            }
            return Validate();
        }
    }
}

